document.body.addEventListener('touchmove', function (e) {
  e.preventDefault();
}, { passive: false });

var mySwiper = new Swiper('.swiper-container', {
  direction: 'vertical',
  effect: 'cube',
  cubeEffect: {
    slideShadows: true,
    shadow: true,
    shadowOffset: 100,
    shadowScale: 0.6
  },
  on: {
    init: function () {
      swiperAnimateCache(this); //隐藏动画元素 
      swiperAnimate(this); //初始化完成开始动画
    },
    slideChangeTransitionEnd: function () {
      swiperAnimate(this); //每个slide切换结束时也运行当前slide动画
    }
  }
})
var html = document.getElementsByTagName('html')[0];
var a = true;
html.addEventListener('touchstart', function () {
  if (a) {
    document.getElementsByTagName('audio')[0].play()
    a = false
  }
})

